/*    file: RtpPackager.h
 *    desc:
 *   
 * created: 2014-07-21 15:24:42
 *  author: zhengchuanjiang
 * company: 
 */ 


#if !defined RTPPACKAGER_H_
#define RTPPACKAGER_H_

#include <Windows.h>
#include <stdio.h>
#include "comn/TByteBuffer.h"
////////////////////////////////////////////////////////////////////////////
class RtpPackager
{
public:
	RtpPackager();
    ~RtpPackager();

    bool open(const char* filename);
    bool isOpen();
    void close();
    
    void write(BYTE* ptr, UINT16 length);

protected:
    FILE*   m_file;
    comn::ByteBuffer m_buffer;

};

////////////////////////////////////////////////////////////////////////////
#endif //RTPPACKAGER_H_

